# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-gtelwifiue
pkgdesc="Samsung Galaxy Tab E 9.6 (SM-T560NU)"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916 soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
	depends="firmware-qcom-adreno-a300 msm-firmware-loader firmware-samsung-gtelwifiue-wcnss-nv"
	mkdir "$subpkgdir"
}

sha512sums="
9472880d4b68735da1ae1b766a62aeedc90e3300ef2726f629a63046af69ba040d9c4bfb6371a1bd700f013cea872fba069ed1cf18f8a0aaa3c494c9469d00e1  deviceinfo
8e075951dc7fe3f05a4a0a1c33fd1e5630bc20d800f3c2de578853e6249ebf4fc8d31d5752a8abb707df3f3c9f9c18adaa89a1918adf9d3a90a38364d9b93b3c  modules-initfs
"
